<?php if(isset($result)): ?>
	<p style="color:red;"><?=$result;?></p>
<?php endif; ?>

<?php $this->title('Login');?>

<?=$this->form->create($admin);?>
<?=$this->form->label('username');?>
<?=$this->form->text('username');?>
<?=$this->form->label('password');?>
<?=$this->form->password('password');?>
<?=$this->form->submit('Login');?>
<?=$this->form->end();?>